package com.translate.web.param;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IOrderSearchByTeamParam;

/**
 * 订单搜索
 */
public class OrderSearchByTeamParam extends OrderSearchParam implements IOrderSearchByTeamParam {
	
	// 流程id
//	@NotNull
//	@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
//	private Integer flowId;
	// 订单编号
	@Pattern(regexp = ValidateCondtionAndMessage.ENGLISH_OR_NUMBER, message = ValidateCondtionAndMessage.ENGLISH_OR_NUMBER_MSG)
	private String orderSnId;
	
	// 服务类型编号
	@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
	private Integer serviceId;
	
	// 是否 加急 0 否 1 是
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
	private Byte urgent;
	
	// 服务状态【0 初始 1 反馈 2 售后】
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	@Max(value = 3, message = "服务状态最大值为3")
	private Byte serviceStatus;
	
	@Min(value = -1, message = "订单状态最小为-1")
	@Max(value = 10, message = "订单状态最大为10")
	private Byte userStatus;
	
	/**
	 * 团队编号
	 */
	private Integer teamId;
	
	private long [] userIds;
	
	
	/**
	 * 用户姓名
	 */
	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
	private String realname;
	
	public Integer getTeamId() {
        return teamId;
    }
	
	public void setTeamId(Integer teamId) {
        this.teamId = teamId;
    }

	public String getOrderSnId() {
		return orderSnId;
	}

	public void setOrderSnId(String orderSnId) {
		this.orderSnId = orderSnId;
	}

	public Integer getServiceId() {
		return serviceId;
	}

	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}

	public Byte getUrgent() {
		return urgent;
	}

	public void setUrgent(Byte urgent) {
		this.urgent = urgent;
	}

	public Byte getServiceStatus() {
		return serviceStatus;
	}

	public void setServiceStatus(Byte serviceStatus) {
		this.serviceStatus = serviceStatus;
	}

	public Byte getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Byte userStatus) {
		this.userStatus = userStatus;
	}


	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public long [] getUserIds() {
		return userIds;
	}

	public void setUserIds(long [] userIds) {
		this.userIds = userIds;
	}

}